<?php
$this->pageTitle=Yii::app()->name . ' - 投票';
$this->breadcrumbs=array(
	'投票',
);
?>

<div class = "span-15">
	<h1><?php echo $row->title; ?></h1>
	<p>你正在为该内容申请一个<?php echo HandleBox::getPollType($_GET['tid']); ?>投票，请填写以下表单：</p>
	<div style = "background: #F6F6F6; padding: 10px; border: 1px #EEE solid; ">
		<div class="form wide">
		
		<?php $form=$this->beginWidget('CActiveForm', array(
			'id'=>'poll-form',
			'enableAjaxValidation'=>false,
		)); ?>
		
			<?php echo $form->errorSummary($model); ?>
	
			<div class="row">
				<?php echo $form->labelEx($model,'value'); ?>
				<?php echo $form->radioButtonList($model,'value', array(0=>'无' ,1=>'一级', 2=>'二级', 3=>'三级', 4=>'四级', 5=>'五级'),
					array('separator'=>'', 'labelOptions'=>array('class'=>'labelForRadio'))
				); ?>
				<?php echo $form->error($model,'value'); ?>
			</div>
			
			<div class="row"> 
			<?php echo $form->labelEx($model,'start_time'); ?>
			<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array( 
			        'attribute' => 'start_time', 
			        'model'=>$model, 
			        'options' => array( 
			                'showAnim' => 'fold', 
			                'dateFormat' => 'yy-mm-dd', 
			        ), 
			)); 
			?> 
			<?php echo $form->error($model,'start_time'); ?>
			</div> 
			
			<div class="row"> 
			<?php echo $form->labelEx($model,'finish_time'); ?>
			<?php $this->widget('zii.widgets.jui.CJuiDatePicker', array( 
			        'attribute' => 'finish_time', 
			        'model'=>$model, 
			        'options' => array( 
			                'showAnim' => 'fold', 
			                'dateFormat' => 'yy-mm-dd', 
			        ), 
			)); 
			?> 
			<?php echo $form->error($model,'finish_time'); ?>
			</div> 
			
			<div class="row">
				<?php echo $form->labelEx($model,'description'); ?>
				<?php echo $form->textArea($model,'description', array('rows'=>3, 'cols'=>40)); ?>
				<?php echo $form->error($model,'description'); ?>
			</div>
		
			<div class="row buttons">
				<?php echo CHtml::submitButton('投票'); ?>
			</div>
		
		<?php $this->endWidget(); ?>
		
		</div><!-- form -->
	</div>
</div>

<div class = "span -9 last">
<h2>投票说明</h2>
一级成熟度<br />
二级成熟度
</div>